﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="viewhistory.ascx.cs" Inherits="Views_viewhistory" %>

<div align=center align=center style="color:#9400D3; font-size:30px;">
    Chi Tiết Mua Hàng
    <div style="height:20px;"></div>
</div>
<div class="middle" >
<asp:DataList ID="productHistory" runat="server" width="100%">
    <HeaderTemplate>
        <table border="0" cellspacing="0" cellpadding="0" width="100%">
        	<tr>
                  <th align="center"><b>Tên</b></th>
                  <th align="center"><b>Hình ảnh</b></th>
                  <th align="left"><b>Số lượng sản phẩm đã mua</b></th>
                  <th align="right"><b>Giá</b></th>
                  <th align="right"><b>Tổng</b></th>
            </tr>
    </HeaderTemplate>
    <ItemTemplate>
            <br />
            <tr class="even">               
                  <td align="center" valign="top"><%# Eval("product_name")%></td>
                  <td align="center" valign="top"><asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("image") %>' Width="40px" Height="40px" AlternateText='<%# Eval("product_name") %>' /></td>
                  <td align="left" valign="top"><%# Eval("quantity")%></td>
                  <td align="right" valign="top"><%# Eval("price") %></td>
                  <td align="right" valign="top"><%# Eval("total") %></td>          
            </tr>
            
    </ItemTemplate>
    <FooterTemplate>
    </table>
    </FooterTemplate>
    
</asp:DataList>
<asp:Button ID="Button1" CssClass="button" runat="server" Text="Quay Trở Lại"/>
</div>
